#ifndef HTTP_SERVER_FOLDER_H
#define HTTP_SERVER_FOLDER_H
#include <stdint.h>
#include <esp_event.h>
#include <esp_http_server.h>
static const char *Http_TAG = "http_server";
void connect_handler(void* arg, esp_event_base_t event_base,
                            int32_t event_id, void* event_data);

void disconnect_handler(void* arg, esp_event_base_t event_base,
                               int32_t event_id, void* event_data);

void stop_webserver(httpd_handle_t server);

httpd_handle_t start_webserver();

esp_err_t ctrl_put_handler(httpd_req_t *req);

esp_err_t http_404_error_handler(httpd_req_t *req, httpd_err_code_t err);

esp_err_t humi_get_handler(httpd_req_t *req);
esp_err_t temp_get_handler(httpd_req_t *req);
esp_err_t bus_vol_get_handler(httpd_req_t *req);



#endif